package cn.wolfcode.crm.query;

import cn.wolfcode.crm.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import java.util.Date;

@Setter
@Getter
public class ContactQueryObject extends QueryObject {

    //模糊查询
    private String keyword;

    //学校ID查询
    private Long schoolId = -1L;

    public String getKeyword() {
        return StringUtils.hasLength(keyword) ? keyword : null;
    }
}
